package org.beangle.notification.mail

import org.beangle.notification.Message
//remove if not needed
import scala.collection.JavaConversions._

class DefaultMailNotifier[T <: MailMessage] extends AbstractMailNotifier[T] {

  def this(mailSender: MailSender) {
    this()
    this.mailSender = mailSender
  }

  protected def buildSubject(context: Message): String = context.subject

  protected def buildText(context: Message): String = context.text
}
